import { request } from '@/utils/request'

/**
 * 上传身份证信息
 * @param {*} formData
 * formData.member_idcard_image[1|2|3]: (binary) 二进制流
 * formData.id: [member_idcard_image1,member_idcard_image2,member_idcard_image3]
 * ID 1-手持身份证  2-身份证正面   3-身份证反面
 */
export const uploadIdCard = formData => request('Member/edit_auth', formData)

/**
 * 实名认证信息
 * @param {*} formData
 * formData.member_truename 真实名称
 * formData.member_idcard 身份证号码
 * formData.if_confirm 未知功能 默认为false
 */
export const auth = formData => request('Member/auth', formData)
